def simple_decorator(arg):
    def wrapper(func):
        def innerWrapper():
            print("Before the function is called.")
            func()
            print(arg)
            print("After the function is called.")
        return innerWrapper

    return wrapper


# 使用装饰器
@simple_decorator(123)
def say_hello():
    print("Hello!")


say_hello()
